<div class="comshop-con clearfix">
  <% @goods.each do |good| %>
    <dl>
      <dt>
      <a href="<%= admin_good_path(good) %>">
        <img src="<%= good.avatar_url.present? ? good.avatar_url : '/assets/images/shop-1.jpg' %>" alt="商品">
      </a>
      </dt>
      <dd>
      <h4><%= good.name %></h4>
      <div class="sh-money">
        <span>¥</span>
        <em><%= good.price %></em>
      </div>
      <div class="clearfix">
        <div class="sh-stock">
          <span>库存:</span>
          <em>
            <% if good.stock %>
              <%= good.stock %>
            <% else %>
              -
            <% end %>
          </em>
        </div>
        <div class="sh-sold">
          <span>已售:</span>
          <em><%= good.sale_amount %></em>
        </div>
      </div>
      </dd>
    </dl>
  <% end %>
</div>
<div class="apple_pagination" id="will_page">
  <%= will_paginate @goods, :container => false %>
</div>
